import Introdution from "@/views/home-pages/intro-pages";

import uploadChildren from "./excel-pages";
import tableChildren from "./table-pages";
import echartsChildren from "./echarts-pages";
import testChildren from "./test-pages";

export default [
  {
    path: "/",
    redirect: "index-page",
  },
  {
    path: "index-page",
    name: "Introdution",
    meta: {
      title: "Introdution",
    },
    component: Introdution,
    children: [],
  },
  {
    path: "excel-pages",
    meta: {
      title: "ExcelPages",
    },
    component: () => import("@/views/home-pages/excel-pages"),
    children: [...uploadChildren],
  },
  {
    path: "table-pages",
    meta: {
      title: "ShowTables",
    },
    component: () => import("@/views/home-pages/table-pages"),
    children: [...tableChildren],
  },
  {
    path: "echarts-pages",
    meta: {
      title: "EchartsPages",
    },
    component: () => import("@/views/home-pages/echarts-pages"),
    children: [...echartsChildren],
  },
  {
    path: "test",
    meta: {
      title: "TestPage",
    },
    component: () => import("@/views/home-pages/__test__"),
    children: [...testChildren],
  },
];
